package com.jintoufs.dao.sys;

import com.jintoufs.dao.QueryFilters;
import com.jintoufs.domain.sys.Message;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;
@Repository
public interface MessageDAO {
	/**
	 * 根据条件查询
	 * @param filters 属性列表，过滤存在的属性值
	 */
	List<Map<String,Object>> getByFilter(QueryFilters filters);

	/**
	 * 修改
	 */
	Integer update(Message entity);

	/**
	 * 添加
	 */
	Integer insert(Message entity);

	/**
	 * 删除
	 */
	void delete(Integer id);

	List<Message> getByParams(Map<String, Object> params);

	int insertSelective(Message message);

	int deleteByPrimaryKey(Integer id);

	int updateByPrimaryKeySelective(Message record);

	List<Map<String,Object>> findByMessage(Map<String, Object> params);

	Map<String,Object> queryByPrimaryKey(Integer id);

    Map<String,Object> next(Integer id);

	Map<String,Object> prev(Integer id);
}
